package cn.com.huzo.model.entities.master;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 产品季节实体类
 *
 * @author 吴旭
 */
public class SeasonEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = 1054377776254354506L;
    private Long SeasonId;
    private String OrderNo;
    private String SeasonName;

    public Long getSeasonId() {
        return SeasonId;
    }

    public String getOrderNo() {
        return OrderNo;
    }

    public String getSeasonName() {
        return SeasonName;
    }

    public void setSeasonId(Long SeasonId) {
        this.SeasonId = SeasonId;
    }

    public void setOrderNo(String OrderNo) {
        this.OrderNo = OrderNo;
    }

    public void setSeasonName(String SeasonName) {
        this.SeasonName = SeasonName;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof SeasonEntity)) {
            return false;
        }

        final SeasonEntity that = (SeasonEntity) o;

        return new EqualsBuilder()
            .append(this.getSeasonId(), that.getSeasonId())
            .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + this.getSeasonId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
